<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!Doctype html>
<html>
<head>
<meta charset="utf-8">
<title>校园二手市场交易</title>
	<%@include file="/common/header.jsp" %>
</head>
<body >
<form class="layui-form"  action="/user/login" method="POST">
	<div class="layui-form-item">
		<label class="layui-form-label">用户名</label>
		<div class="layui-input-inline">
			<input type="text" name="username" required lay-vertify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input">
		</div>
		<div class="layui-form-mid layui-word-aux">没有用户名，去<a href="/register.html">注册</a>
		</div>
	</div>
	
	<div class="layui-form-item">
		<label class="layui-form-label">密码</label>
		<div class="layui-input-inline">
			<input type="password" name="password" required lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
		</div>
	</div>
	
	<div class="layui-form-item">
		<div class="layui-input-block">
			<button class="layui-btn" lay-submit lay-filter="formDemo">登录</button>
			<button type="reset" class="layui-btn layui-btn-primary">重置</button>
		</div>
	</div>
</form>

<script>
//Demo
layui.use('form', function(){
  var form = layui.form;
  
  //监听提交
    form.on('submit(*)',function(){
    //layer.msg(JSON.stringify(data.field));
    //return false;
  });
});
</script>
